@import './public.scss';

header{
    background-color: #343538;
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    .logo{
        margin-left: 20px;
        width: 18px;
        height: 18px;
        background: url() no-repeat 50%;
        >a{
            display: block;
            height: 18px;
        }
    }
    .header-right{
        display: flex;
        .login{
            margin-right: 22px;
            a{
                float: left;
                width: 20px;
                height: 20px;
                padding:10px 0;
                background-image:url(https://static.smartisanos.cn/indexnew/img/avatar-and-cart.c2634628.png);
                background-size: 38px 38px;
                background-clip: content-box;
                background-position: 20px 10px;
            }
            h3{
                float: left;
                font-size: 12px;
                color: #dbdbdb;
                margin-top: 12px;
                .quit{
                    color:#5677da;
                    cursor: pointer;
                    &:hover{
                        text-decoration: underline;;
                    }
                }
            }
        }
        .cart{
            position: relative;
            margin-right: 26px;
            a{
                position: relative;
                float: left;
                width: 20px;
                height: 20px;
                padding: 10px 0;
                background-image: url(//static.smartisanos.cn/indexnew/img/avatar-and-cart.c2634628.png);
                background-size:38px 38px;
                background-clip: content-box;
                background-position: 20px 30px;
                &:hover{
                    cursor: pointer;
                }
                >.redDot{
                    position: absolute;
                    font-size: 12px;
                    color: #fff;
                    display: none;
                    right: 0px;
                    top: 10px;
                    width: 5px;
                    height: 5px;
                    border-radius: 50%;
                    background-color: red;
                }
            }
            .cart-warp{
                position: absolute;
                z-index: 21;
                top:35px;
                right: 0px;
                display: none;
                width: 360px;
                text-align: center;
                box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.15);
                border-radius: 5px;
                background:url() no-repeat 50% 40%;
                background-color: #fff;
                overflow: hidden;
                margin: 0 !important;
                .empty-cart-top{
                    height: 175px;
                    >span{
                        display: block;
                        margin-top: 190px;
                        font-size: 18px;
                    }
                    >p{
                        font-size: 12px;
                        color: #bcbcbc;
                    }
                }
                .hasCart{
                    display: none;
                    background-color: #fff;
                    >ul{
                        margin: 0;
                        max-height:590px;
                        overflow-y: auto;
                        >li{
                            user-select: none;
                            display: flex;
                            align-items: center;
                            padding: 20px;
                            font-size: 12px;
                            border-bottom: 1px solid #f0f0f0;
                            &:hover{
                                background-color: #e5e2e2;
                            }
                            >.del{
                                //display: none;
                                width: 15px;
                                height: 15px;border: 1px solid #fff;
                                border-radius: 50%;
                                line-height: 13px;
                                color: #fff;
                                cursor: pointer;
                            }
                            >a{
                                width: 75px;
                                height: 75px;
                                border: 1px solid #dbdbdb;
                                padding: 0;
                                >img{
                                    width: 75px;
                                    height: 75px;
                                }
                            }
                            .shopinfo{
                                display: flex;
                                flex-direction: column;
                                align-items: flex-start;
                                justify-content: center;
                                margin-left: 16px;
                                flex-grow: 1;
                                p{
                                    margin: 0;
                                 }
                                span{
                                    font-weight: bolder;
                                }
                                .color{
                                    margin: 10px 0;
                                    color: #999;
                                }
                                .priceinfo{
                                    color: #cad4e2;
                                    .price{
                                        color: #cb4f44;
                                    }
                                    i{
                                        margin-left: 12px;
                                        font-style: normal;
                                    }
                                }
                               
                            }
                        }
                    }
                    .bottom{
                        display: flex;
                        justify-content: space-between;
                        padding: 18px 20px;
                        >.left{
                            >p{
                                margin: 0;
                                text-align: left;
                            }
                            >.count{
                                font-size: 12px;
                                color: #c1c1c1;
                            }
                            >.sum{
                                font-size: 14px;
                                color: #6f6f6f;
                                span{
                                    color: #d44238;
                                    font-weight: bolder;
                                    margin-left: 10px;
                                }
                            }
                        }
                        button{
                            width: 110px;
                            height: 40px;
                            text-align: center;
                            line-height: 40px;
                            background-color: #6b8be8;
                            border-radius: 5px;
                            color: #fff;
                            font-size: 12px;
                            border-style: none;
                            cursor: pointer;
                            outline: none;
                            &:active{
                                background-color: #4870e9;
                            }
                        }
                       
                    }
                }
            }
        }
    }
    .header{
        min-width: 1200px;
        position: relative;
        left: 30px;
        ul{
            font-size: 12px;
            overflow: hidden;
            li{
                float: left;
                padding: 0 20px;
                &.active>a{
                    color: #fff;
                    font-weight: 700;
                }
                >a{
                    color:#c3c3c4;
                    &:hover{
                        color: #e7d9b7;
                        cursor: pointer;
                        text-decoration: none;
                    }
                }
            }
        }
    }
}
